package com.answer.service;

import com.answer.dto.ReturnError;
import com.answer.exception.ElementEmptyException;
import com.answer.exception.RecordEmptyException;
import com.answer.model.Answer;
import com.answer.service.base.BaseService;

/**
 * Created by Administrator on 2017/4/13.
 */
public interface AnswerService extends BaseService<Answer> {
    ReturnError saveAns(Long id, Answer answer) throws ElementEmptyException;

    ReturnError updateAns(Answer answer) throws ElementEmptyException, RecordEmptyException;

    ReturnError removes(String ids);
}
